-- GENERATED SPELL FOR [Arthas] --


function spell0_26499(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(52442,pUnit)
pUnit:RegisterEvent('Sorts_26499', 649, 1)
end

function spell1_26499(pUnit, Event) --@Exorcism,n/a--
pUnit:FullCastSpellOnTarget(52445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26499', 683, 1)
end

function spell2_26499(pUnit, Event) --@Exorcism,n/a--
pUnit:FullCastSpellOnTarget(58822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26499', 610, 1)
end

function spell3_26499(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(52444,pUnit)
pUnit:RegisterEvent('Sorts_26499', 615, 1)
end

function Sorts_26499(pUnit, Event)
local choix_sorts_26499 = math.random(0, 3)
if choix_sorts_26499 == 0 then
pUnit:RegisterEvent('spell0_26499', 1, 1)
end
if choix_sorts_26499 == 1 then
pUnit:RegisterEvent('spell1_26499', 1, 1)
end
if choix_sorts_26499 == 2 then
pUnit:RegisterEvent('spell2_26499', 1, 1)
end
if choix_sorts_26499 == 3 then
pUnit:RegisterEvent('spell3_26499', 1, 1)
end
end

function mob26499_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26499', math.random(1500, 3000), 1)
end

function mob26499_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26499_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26499_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26499, 1, 'mob26499_Action')
RegisterUnitEvent(26499, 2, 'mob26499_Leave')
RegisterUnitEvent(26499, 3, 'mob26499_Kill')
RegisterUnitEvent(26499, 4, 'mob26499_Die')
